package org.eiahe.hr.performance.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.performance.domain.PerformanceScoreDetail;
import org.eiahe.hr.performance.domain.PerformanceScorer;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 评分人设置视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PerformanceScorer.class)
public class PerformanceScorerVo {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 工号
     */
    private String employeeNo;

    private String employeeName;

    /**
     * 评分人工号
     */
    private String scorerNo;

    /**
     * 评分维度(1上级 2同级 3下级 4自评)
     */
    private String scoreType;

    /**
     * 岗位ID
     */
    private Long positionId;

    private String positionName;

    /**
     * 周期ID
     */
    private Long cycleId;

    private String cycleName;

    /**
     * 权重
     */
    private BigDecimal weight;

    /**
     * 删除标志(0存在 1删除)
     */
    private String delFlag;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
